package javabase.obj;

abstract class C {
	public C() {
		System.out.println("A");
	}
}

class B extends C {
	public B() {
		System.out.println("B");
	}
}
public class AbstractDemo {

	public static void main(String[] args) {
		C c = new B();
		System.out.println(c);
	}

}
